package net.schmurgon.server.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import javax.validation.constraints.NotNull;
import net.schmurgon.server.domain.Course;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;

@Entity
@RooJavaBean
@RooToString
@RooEntity(identifierField = "id")
public class Series 
{

	@NotNull
    private String seriesName;

    @ManyToOne(targetEntity = Course.class)
    @JoinColumn
    private Course shortCourse;

    @ManyToOne(targetEntity = Course.class)
    @JoinColumn
    private Course longCourse;
}
